import request from '@/utils/request'



const BASE_URL='/admin/system/sysParking';

export default{

    findPageInfo(page,limit,searchObj){
      return request({
            url:`${BASE_URL}/${page}/${limit}`,
            method:'get',
            params:searchObj
        })
    },

    addParking(SysParking){
        return request({
            url:`${BASE_URL}/addParking/`,
            method:'post',
            data:SysParking
        })
    },

    findParkingById(id){
        return request({
            url:`${BASE_URL}/findParkingById/${id}`,
            method:'get',
            
        })
    },

    updateParking(SysParking){
        return request({
            url:`${BASE_URL}/updateParking`,
            method:'post',
            data:SysParking
        })
    },

    removeById(id){
        return request({
            url:`${BASE_URL}/removeParkingById/${id}`,
            method:'delete',
            
        })
    },
        //  7、批量删除
        batchremoveId(ids) {
            return request({
                url: `${BASE_URL}/removeParkingByIds`,
                method: 'delete',  // 提交方式
                data: ids
            })
        },

          // 8、更改用户状态
          updateParkingStatus(id,status){
            return request({
              url:`${BASE_URL}/updateParkingStatus/${id}/${status}`,
             method: 'get'
             }) 
         },

    




    
}